
package com.stchou.superbrowser.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        Handler hander = new Handler();
        GoToHome goHomeRunnable = new GoToHome();
        hander.postDelayed(goHomeRunnable, 1000L);
    }

    class GoToHome implements Runnable
    {
        public void run()
        {
            Intent intent = new Intent();
            intent.setClass(SplashActivity.this.getApplicationContext(), IndexActivity.class);
            SplashActivity.this.startActivity(intent);
            SplashActivity.this.finish();
        }
    }
}
